Optimal. Leaf size=144 \[ \frac {(e x)^{1+m} \left (1+e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )^{-p} \cos ^p\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, _2F_1\left (-p,-\frac {i+i m+b d n p}{2 b d n};\frac {1}{2} \left (2-\frac {i (1+m)}{b d n}-p\right );-e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )}{e (1+m-i b d n p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4582, 4580,
371} \begin {gather*} \frac {(e x)^{m+1} \left (1+e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )^{-p} \, _2F_1\left (-p,-\frac {i m+b d n p+i}{2 b d n};\frac {1}{2} \left (-\frac {i (m+1)}{b d n}-p+2\right );-e^{2 i a d} \left (c x^n\right )^{2 i b d}\right ) \cos ^p\left (d \left (a+b \log \left (c x^n\right )\right )\right )}{e (-i b d n p+m+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 4580
Rule 4582
Rubi steps
\begin {align*} \int (e x)^m \cos ^p\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, dx &=\frac {\left ((e x)^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}}\right ) \text {Subst}\left (\int x^{-1+\frac {1+m}{n}} \cos ^p(d (a+b \log (x))) \, dx,x,c x^n\right )}{e n}\\ &=\frac {\left ((e x)^{1+m} \left (c x^n\right )^{-\frac {1+m}{n}+i b d p} \left (1+e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )^{-p} \cos ^p\left (d \left (a+b \log \left (c x^n\right )\right )\right )\right ) \text {Subst}\left (\int x^{-1+\frac {1+m}{n}-i b d p} \left (1+e^{2 i a d} x^{2 i b d}\right )^p \, dx,x,c x^n\right )}{e n}\\ &=\frac {(e x)^{1+m} \left (1+e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )^{-p} \cos ^p\left (d \left (a+b \log \left (c x^n\right )\right )\right ) \, _2F_1\left (-p,-\frac {i+i m+b d n p}{2 b d n};\frac {1}{2} \left (2-\frac {i (1+m)}{b d n}-p\right );-e^{2 i a d} \left (c x^n\right )^{2 i b d}\right )}{e (1+m-i b d n p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.86, size = 170, normalized size = 1.18 \begin {gather*} \frac {x (e x)^m \left (e^{-i a d} \left (c x^n\right )^{-i b d}+e^{i a d} \left (c x^n\right )^{i b d}\right )^p \left (2+2 e^{-2 i a d} \left (c x^n\right )^{-2 i b d}\right )^{-p} \, _2F_1\left (-p,\frac {i (1+m+i b d n p)}{2 b d n};1+\frac {i (1+m)}{2 b d n}-\frac {p}{2};-e^{-2 i a d} \left (c x^n\right )^{-2 i b d}\right )}{1+m+i b d n p} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.08, size = 0, normalized size = 0.00 \[\int \left (e x \right )^{m} \left (\cos ^{p}\left (d \left (a +b \ln \left (c \,x^{n}\right )\right )\right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\cos \left (d\,\left (a+b\,\ln \left (c\,x^n\right )\right )\right )}^p\,{\left (e\,x\right )}^m \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________